package top.swimmer.core.model;

import org.postgresql.util.PGobject;
import top.swimmer.core.session.UserType;

import java.util.Date;

/**
 * Created by xiaoyou on 16-7-4.
 */
public class BaseModel {
    private Integer id;
    private Integer owner;
    private UserType ownerType;

    private PGobject payload;

    private boolean deleted = false;

    private String createdBy;
    private Date createdTime;

    private String updatedBy;
    private Date updatedTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOwner() {
        return owner;
    }

    public void setOwner(Integer owner) {
        this.owner = owner;
    }

    public UserType getOwnerType() {
        return ownerType;
    }

    public void setOwnerType(UserType ownerType) {
        this.ownerType = ownerType;
    }

    public PGobject getPayload() {
        return payload;
    }

    public void setPayload(PGobject payload) {
        this.payload = payload;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}
